package com.iwhalecloud.citybrain.flow.platform.manager.domain.model.log;

import java.util.Objects;

import org.flowable.task.api.Task;

/**
 * @author lilh
 * @date 2019-08-22 16:11
 */
public class CommonOperateLogForAddVo {

    private String modelKey;

    private String processInstanceId;

    private String taskId;

    private String taskName;

    private String activityId;

    private String type;

    private String createBy;

    public CommonOperateLogForAddVo() {
    }


    public CommonOperateLogForAddVo(Task task) {
        if (Objects.nonNull(task)) {
            this.taskId = task.getId();
            this.taskName = task.getName();
            this.processInstanceId = task.getProcessInstanceId();
            this.activityId = task.getTaskDefinitionKey();
        }
    }

    public String getModelKey() {
        return modelKey;
    }

    public void setModelKey(String modelKey) {
        this.modelKey = modelKey;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
}
